<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <title>会议添加</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="../assets/images/favicon.ico" th:href="@{/assets/images/favicon.ico}">

    <!-- App css -->
    <link href="../assets/css/bootstrap.min.css" th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet" type="text/css" />
    <link href="../assets/css/jquery-ui.min.css" th:href="@{/assets/css/jquery-ui.min.css}" rel="stylesheet">
    <link href="../assets/css/icons.min.css" th:href="@{/assets/css/icons.min.css}" rel="stylesheet" type="text/css" />
    <link href="../assets/css/metisMenu.min.css" th:href="@{/assets/css/metisMenu.min.css}" rel="stylesheet" type="text/css" />
    <link href="../assets/css/app.min.css" th:href="@{/assets/css/app.min.css}" rel="stylesheet" type="text/css" />

</head>

<body>

<!-- Top Bar Start -->
<div th:replace="~{common/top-nav::top-nav}"></div>
<!-- Top Bar End -->


<!-- Left Sidenav -->
<div th:replace="~{common/left-side-nav::left-side-nav}"></div>
<!-- end left-sidenav-->

<div class="page-wrapper">
    <!-- Page Content-->
    <div class="page-content">

        <div class="container-fluid">
            <!-- Page-Title -->
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title-box">
                        <div class="float-right">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a href="javascript:void(0);">办公自动化</a></li>
                                <li class="breadcrumb-item"><a href="javascript:void(0);">会议管理</a></li>
                                <li class="breadcrumb-item active">会议添加</li>
                            </ol>
                        </div>
                        <h4 class="page-title">会议管理</h4>
                    </div><!--end page-title-box-->
                </div><!--end col-->
            </div>
            <!-- end page title end breadcrumb -->
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">

                            <div class="row">
                                <div class="col-12">
                                    <div class="card">
                                        <div class="card-body">
                                            <form th:action="@{/meeting/meeting_add}" method="post"
                                                  class="needs-validation" >
                                                <!--novalidate 不让浏览器进行自动验证-->
                                                <div class="form-group row">
                                                    <label for="subject"
                                                           class="col-sm-2 col-form-label text-right">会议主题</label>
                                                    <div class="col-sm-8">
                                                        <!--required 提交表单时进行验证-->
                                                        <input class="form-control" type="text" required
                                                               th:value="${meeting != null ? meeting.subject : ''}"
                                                               name="subject"
                                                               id="subject">
                                                     </div>
                                                </div>
                                                <div class="form-group row">
                                                    <label for="remark"
                                                           class="col-sm-2 col-form-label text-right">会议备注</label>
                                                    <div class="col-sm-8">
                                                        <input class="form-control" type="text" value="" required
                                                               name="remark" th:value="${meeting != null ? meeting.remark : ''}"
                                                               id="remark">
                                                     </div>
                                                </div>
                                                <div class="form-group row">
                                                    <label for="status"
                                                           class="col-sm-2 col-form-label text-right">会议状态</label>
                                                    <div class="col-sm-8">
                                                        <!--required 提交表单时进行验证-->
                                                        <select class="form-control" id="status" name="status"
                                                                th:value="${meeting != null ? meeting.status : ''}">
                                                            <option selected >请选择状态</option>
                                                            <option>未开始</option>
                                                            <option>进行中</option>
                                                            <option>已结束</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group col-sm-6 float-left">
                                                    <label for="beginTime">会议开始时间</label>
                                                    <div class="col-sm-8">
                                                        <input class="form-control" type="datetime-local"
                                                           th:value="${meeting != null ? meeting.beginTime : ''}"
                                                           id="beginTime" name="beginTime" placeholder="请选择开始时间">
                                                    </div>

                                                </div>
                                                    <div class="form-group col-sm-6 float-left">
                                                        <label for="endTime">会议结束时间</label>
                                                        <div class="col-sm-8">
                                                            <input class="form-control" type="datetime-local"
                                                                   th:value="${meeting != null ? meeting.endTime : ''}"
                                                                   id="endTime" name="endTime" placeholder="请选择开始时间">
                                                        </div>
                                                    </div>
                                                        <div class="form-group col-sm-6 float-left">
                                                            <label for="launchTime">会议发起时间</label>
                                                            <div class="col-sm-8">
                                                                <input class="form-control" type="datetime-local"
                                                                       th:value="${meeting != null ? meeting.launchTime : ''}"
                                                                       id="launchTime" name="launchTime" placeholder="请选择开始时间">
                                                            </div>
                                                        </div>

                                                <div class="form-group col-sm-6 float-left">
                                                    <label for="launchUserId">会议发起用户ID</label>
                                                    <div class="col-sm-8">
                                                        <input class="form-control" type="text" value="" required
                                                               name="launchUserId" th:value="${meeting != null ? meeting.launchUserId : ''}"
                                                               id="launchUserId">
                                                    </div>
                                                </div>



                                                <div>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <button type="submit"
                                                            class="btn btn-gradient-primary">保存</button>
                                                    <button type="reset"
                                                            class="btn btn-gradient-danger">重置</button>
                                                </div>



                                            </form>

                                            <!--end table-->
                                        </div><!--end card-body-->
                                    </div><!--end card-->
                                </div> <!-- end col -->
                            </div>

                            <!--end table-->
                        </div><!--end card-body-->
                    </div><!--end card-->
                </div> <!-- end col -->
            </div> <!-- end row -->



        </div><!-- container -->

        <footer class="footer text-center text-sm-left">
            &copy; 2022办公自动化 <span class="text-muted d-none d-sm-inline-block float-right"><i class="mdi mdi-heart text-danger"></i>来自<a href="#">4228</a></span>
        </footer><!--end footer-->
    </div>
    <!-- end page content -->
</div>
<!-- end page-wrapper -->




<!-- jQuery  -->
<script src="../assets/js/jquery.min.js"></script>
<script src="../assets/js/jquery-ui.min.js"></script>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/metismenu.min.js"></script>
<script src="../assets/js/waves.js"></script>
<script src="../assets/js/feather.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>

<script src="../../plugins/tiny-editable/mindmup-editabletable.js"></script>
<script src="../../plugins/tiny-editable/numeric-input-example.js"></script>
<script src="../../plugins/bootable/bootstable.js"></script>
<script src="../assets/pages/jquery.tabledit.init.js"></script>

<!-- App js -->
<script src="../assets/js/app.js"></script>
<script>
    // 为表单注册提交事件
    $('form.needs-validation').submit(function (enevt) {
        // 调用表单对象的验证方法。如果验证方法返回true，说明表单所有的域都填写正确。否则返回false
        if (this.checkValidity() === false){
            // 为表单添加注册失败后的样式
            $(this).addClass('was-validated')
            return false;
        }

        return true;
    })
</script>

</body>
</html>